﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Bridge_Note.ascx.cs" Inherits="Controls_USIX_Bridge_Note" %>
<fieldset id="fsNewNote" runat="server" class="Office2007"><legend>New Note</legend>
<div id="divNewNote" RunAt="server" style="display:none;" class="CommonDialog">
	<div style="float:left" nowrap >
	<b>Note Type:</b> 
		<asp:DropDownList ID="selNoteType" datasrc="#xmlNewNote" datafld="NoteTypeID" DataSourceID="dsNT" dataTextField="Name" DataValueField="ID" AppendDataBoundItems="true" runat="server"
				 style="vertical-align:middle"
		>
		<asp:ListItem Text="Select ..." Value="0" />
	</asp:DropDownList>
	<asp:LinqDataSource ID="dsNT" ContextTypeName="Data.LINQ.MotoBank" TableName="ts_NoteTypes" runat="server" />
	<b>Action:</b> 
		<UI:DropDownListEx ID="selActionCode" datasrc="#xmlNewNote" DataFld="NoteActionCodeID" DataText="ActionLabel" DataVal="ActionCodeID" runat="server"
			style="vertical-align:middle"
		><asp:ListItem Text="Select Note Type" Value="0"></asp:ListItem>
	</UI:DropDownListEx>
			<b>Result:</b> 
	<select ID="selStatus" datasrc="#xmlNewNote" DataText="Status" DataFld="StatusID" IfEmptyValue="0" IfEmptyText="Done"  style="vertical-align:middle" RunAt="server"><option Value="0">Select Action</option></select>
	</div>
	<div style="" nowrap>
	<input ID="txtNotePhone" datasrc="#xmlNewNote" datafld="Phone" title="Enter Phone Number To Dial" watermark="{html:'Phone #.',cls:'WM'}" style="width:11ex;overflow-x:visible;vertical-align:middle">
	<input id="btnNoteDial" type="button" value="Dial:" onclick="motobankcorp.Dialer.dial(txtExt.value,txtPwd.value,txtNotePhone.value);" style="vertical-align:middle" />
	<img id="imgShowExtPwd" src="/images/Buttons/bell.gif" Style="vertical-align:middle" />
	</div>
	<style>
		div p{padding:0px;margin:0px}
	</style>
	<div id="txaNote" datasrc="#xmlNewNote" datafld="Note" watermark1="{html:'Enter new not here.',cls:'WM'}"
		style="width:50em;border:solid 1px navy;background-color:white;font-family:Monospace;white-space:pre" contenteditable="true" >
	</div>
	<div style="">
	<b>Next Coll. Date:</b> <input ID="txtDateDue" datasrc="#xmlNewNote" datafld="DateDue" onchange="this.changed=true;" size="10" style="overflow-x:visible" />
	<b>Next Coll. By:</b> <input ID="txtDateDueBy" datasrc="#xmlNewNote" datafld="DateDueBy"  disabled  />
	<input id="btnAddNewNote" value="Add Note" type="button" />
	<input ID="chkIsResolved" type="checkbox" value="Resolved" />
	<input OnClick="ResolveCollection" value="Next" Type="button" />
	</div>
</div>
</fieldset>
<div id="hvrExtPwdPanel" Class="CommonDialogPopUp" style="display:none">
	<b>Ext:</b>
	<input id="txtExt" value='<%=Profile.IPPhone.Extention%>' size="3" style="overflow-x:visible;vertical-align:middle" />
	<br />
	<b>Pwd:</b>
	<input id="txtPwd" value='<%=Profile.IPPhone.Password%>' size="3" style="overflow-x:visible;vertical-align:middle" type="password"  />
	<input type="button" value="OK" onclick="" />
</div>
<xml id="xmlNewNote"></xml>
<script>
	function showXml() {
		alert(xmlNewNote.xml);
	}
</script>
